// export { default as BaseTable } from './BaseTable/index'
// export { default as BaseForm } from './BaseForm/index'
// export { default as SvgIcon } from './SvgIcon/index'

// 注册全局组件
// type C = Record<string, Component>
// type C = Record<string, { default: Component }>
// for (const key in components) {
//   const component = (components as C)[key].default
//   app.component(component.name || key, component)
// }

// 注册全局组件
import { App } from '@vue/runtime-core'
import BaseTable from './BaseTable/index'
import BaseForm from './BaseForm/index'
import SvgIcon from './SvgIcon/index'

export function setupGlobalComponents(app: App<Element>) {
  app.component('base-table', BaseTable)
  app.component('base-form', BaseForm)
  app.component('svg-icon', SvgIcon)
}